<template>
  <div>
    <el-select v-model="searchData.serialno" filterable clearable placeholder="请选择灌溉设备" style="width:100%;">
      <el-option
        v-for="(item,index) in filterDevices"
        :key="index"
        :label="item.name"
        :value="item.serialno"
      />
    </el-select>
  </div>
</template>

<script>
import { dclassCodeMap } from '@/utils/constant'
export default {
  data() {
    return {
      searchData: {}
    }
  },
  computed: {
    filterDevices() {
      return this.$store.getters.devices.filter(val => {
        return val.product_type === dclassCodeMap.dg
      })
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>

</style>
